#include "InBracket.h"

InBracket::InBracket(Scope* pParentScope)
{
    m_eType=Scope::eScopeBracket;
    m_pxParent = pParentScope;
}

InBracket::~InBracket(void)
{
}

Scope* InBracket::process(Token& inToken, bool &bIsEndOfScope)
{
    Scope* pxScope = NULL;
    char cDelimiter = char(inToken);
    bIsEndOfScope=false;

    pxScope = Scope::process(inToken, bIsEndOfScope);

    switch(cDelimiter)
    {
    case ']':
        bIsEndOfScope = true;
        break;
    }

    return pxScope;
}